package com.atom.app.mvi.ui.main

import android.content.Context
import android.widget.Toast
import io.reactivex.rxjava3.functions.Consumer

class FakeAnalyticsTracker(
    private val context: Context
) : Consumer<UiEvent> {

    var showToasts: Boolean = true

    override fun accept(uiEvent: UiEvent) {
        if (showToasts) {
            Toast.makeText(context, "Analytics: ${uiEvent.javaClass.simpleName}", Toast.LENGTH_SHORT).show()
        }
    }
}

